package com.kakarote.core.feign.hrm.impl;

import com.kakarote.core.common.Result;
import com.kakarote.core.feign.hrm.HrmFeignService;
import com.kakarote.core.feign.oa.entity.ExamineVO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * hrm回滚服务接口
 */
@Component
public class HrmFeignServiceImpl implements HrmFeignService {

    /**
     * 根据IDS查询HRM
     */
    @Override
    public Result<Map<Long, ExamineVO>> getHrmExamineByIds(@RequestParam("hrmExamineIds") List<Long> hrmExamineIds){
        return null;
    }
    /**
     * 完成入职流程
     */
    @Override
    public Result<Void> finishEntryExamine(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus){
        return null;
    }
    /**
     * 完成离职流程
     */
    @Override
    public Result<Void> finishLeaveExamine(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus){
        return null;
    }
    /**
     * 流程引用调入流程
     */
    @Override
    public Result<Void> saveEmpChangeInExamine(@RequestParam("flowId") Long flowId,@RequestParam("recordId") Long recordId){
        return null;
    }
    /**
     * 流程引用调出流程
     */
    @Override
    public Result<Void> saveEmpChangeOutExamine(@RequestParam("flowId") Long flowId,@RequestParam("recordId") Long recordId){
        return null;
    }
    /**
     * 人员调动
     */
    @PostMapping("/hrm/examine/finishEmployeeChange")
    public Result<Void> finishEmployeeChange(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus){
        return null;
    }
    /**
     * 完成内部处理逻辑
     */
    @PostMapping("/hrm/examine/finishChildrenFlow")
    public Result<Void> finishChildrenFlow(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus){
        return null;
    }

    /**
     * 子级完成后，最好碰到最后一个节点，将父节点完结,这种情况，不会出现拒绝的情形
     */
    @PostMapping("/hrm/examine/finishParentFlow")
    public Result<Void> finishParentFlow(@RequestParam("hrmExamineId") Long hrmExamineId,@RequestParam("checkStatus") Integer checkStatus){
        return null;
    }



    /**
     * 保存员工入职-集团流程
     */
    @PostMapping("/hrm/examine/saveEmpEntryGroupExamine")
    public Result<Void> saveEmpEntryGroupExamine(@RequestParam("flowId") Long flowId,@RequestParam("recordId") Long recordId){
        return null;
    }

    /**
     * 集团入职流程
     */
    @PostMapping("/hrm/examine/finishGroupEntryExamine")
    public Result<Void> finishGroupEntryExamine(@RequestParam("hrExamineId") Long hrExamineId,@RequestParam("checkStatus") Integer checkStatus){
        return null;
    }

    /**
     * 员工信息修改审批流程
     */
    @PostMapping("/hrm/examine/finishEmployeeInfoChangeExamine")
    public Result<Void> finishEmployeeInfoChangeExamine(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus) {
        return null;
    }

    /**
     * 员工关键字段修改审批流程
     */
    @PostMapping("/hrm/examine/finishEmployeeKeyFieldChangeExamine")
    public Result<Void> finishEmployeeKeyFieldChangeExamine(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus) {
        return null;
    }

    /**
     * 员工职务层级调整审批流程
     */
    @PostMapping("/hrm/examine/finishEmployeePostLevelChangeExamine")
    public Result<Void> finishEmployeePostLevelChangeExamine(@RequestParam("hrmExamineId") Long hrmExamineId, @RequestParam("checkStatus") Integer checkStatus) {
        return null;
    }
}
